package dataObjects;

import java.util.LinkedList;
import java.util.List;

import logicGuiConnection.Director;
import logicGuiConnection.Movie;

public class DirectorImp implements Director{
	
	private int id;
	private String name;
	private List<Movie> record;
	
	/*constructor*/
	
	public DirectorImp(int id, String name){
		this.id = id;
		this.name = name;
		this.record = new LinkedList<Movie>();
	}
	
	
	/*getters*/
	
	public int getID(){
		return id;
	}
	
	public String getName(){
		return name;
	}
	
	public List<Movie> getRecord(){
		return record;
	}
	
	
	
	/*setters*/
	
	public void setID(int id){
		this.id = id;
	}
	
	public void setName(String name){
		this.name = name;
	}
	
	public void addMovieToRecord(MovieImp movie){
		record.add(movie);
	}
	
	public void removeMovie(Movie mo){
		this.record.remove(mo);
	}
	
}
